package com.hcy.schedulingclient.client;

import com.hcy.schedulingclient.model.driver.request.UploadLocationRequestDTO;
import com.hcy.rabbitbasicmodel.model.ResponseData;
import com.hcy.rabbitbasicmodel.signl.Add;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/1/12 22:22
 */
@FeignClient("scheduling-api")
public interface SchedulingLocationClient {
    @PostMapping("/upload/carLocation")
    ResponseData<Object> upload(@Validated({Add.class}) @RequestBody UploadLocationRequestDTO requestDTO);
}
